/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package master.proyectoweb.managedbeans.util;

import master.proyectoweb.entities.Category;

/**
 *
 * @author joaquin
 */
public class SearchCriteria {
    
    private String searchTerm;
    private double searchMinPrice;
    private double searchMaxPrice;
    private Category searchCategory;
    private boolean searchStock;

    public SearchCriteria() {
    }

    
    public String getSearchTerm() {
        return searchTerm;
    }

    public void setSearchTerm(String searchTerm) {
        this.searchTerm = searchTerm;
    }

    public double getSearchMinPrice() {
        return searchMinPrice;
    }

    public void setSearchMinPrice(double searchMinPrice) {
        this.searchMinPrice = searchMinPrice;
    }

    public double getSearchMaxPrice() {
        return searchMaxPrice;
    }

    public void setSearchMaxPrice(double searchMaxPrice) {
        this.searchMaxPrice = searchMaxPrice;
    }

    public Category getSearchCategory() {
        return searchCategory;
    }

    public void setSearchCategory(Category searchCategory) {
        this.searchCategory = searchCategory;
    }

    public boolean isSearchStock() {
        return searchStock;
    }

    public void setSearchStock(boolean searchStock) {
        this.searchStock = searchStock;
    }

    @Override
    public String toString() {
        return "SearchCriteria{" + "searchTerm=" + searchTerm + ", searchMinPrice=" + searchMinPrice + ", searchMaxPrice=" + searchMaxPrice + ", searchCategory=" + searchCategory + ", searchStock=" + searchStock + '}';
    }
    
}
